package com.ruibang.glass.common.domain.produce;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-03-11  10:37
 * @Description: TODO:生产-配料-料罐装货记录实体
 * @Version: 1.0
 */

@Data
public class BucketShipmentRecord extends BaseEntity {
    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty("容器")
    private String container;

    @ApiModelProperty("物料")
    private String material;

    @ApiModelProperty("数量")
    private Integer num;

    @ApiModelProperty("装载时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime loadTime;

    @ApiModelProperty("卸载时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime unloadTime;

    @ApiModelProperty("装载操作人")
    private String loadOperator;

    @ApiModelProperty("卸载操作人")
    private String unloadOperator;

    @ApiModelProperty("装载操作人用户ID")
    private String loadOperatorId;

    @ApiModelProperty("卸载操作人用户ID")
    private String unloadOperatorId;

    @ApiModelProperty("装货库位")
    private String loadWarehousePosition;

    @ApiModelProperty("卸货库位")
    private String unloadWarehousePosition;

    @ApiModelProperty("异常卸货 0：否 1：是")
    private String abnormalStatus;

    @ApiModelProperty("异常原因")
    private String abnormalCause;

    @ApiModelProperty("是否删除：1：是 0：否")
    @TableLogic
    private String isDelete;

    @ApiModelProperty(value = "配方编号")
    private String formulaCode;
}
